@echo off

set "SRC_DIR=ProtoFiles"
set "DST_DIR1=..\..\Server\FrameServer\ProtoBuf"
set "DST_DIR2=..\..\DeskPetClient\Assets\Scripts\Net\ProtoBuf"
set "PROTOC_DIR=.\protoc-3.14.0-win64\bin"

for %%f in ("%SRC_DIR%\*.proto") do (
    "%PROTOC_DIR%\protoc.exe" -I="%SRC_DIR%" --csharp_out="%DST_DIR1%" --csharp_out="%DST_DIR2%" "%%~nxf"
)

echo All Done!
pause
